package com.cl.pattern.memento.multiState;

import java.util.HashMap;

/**
 * @ClassName Memento
 * @Description  备忘录角色
 * @Author Small
 * @Date 2020/7/9 10:20
 * @Version 1.0
 **/
public class Memento {
    /**
     * hashMap保存内部状态
     */
    private HashMap<String,Object> stateMap ;

    public Memento(HashMap<String,Object> stateMap) {
        this.stateMap = stateMap;
    }

    public HashMap<String, Object> getStateMap() {
        return stateMap;
    }

    public void setStateMap(HashMap<String, Object> stateMap) {
        this.stateMap = stateMap;
    }
}
